package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcReworkMapper;
import com.sdry.model.zc.ZcDisposeRejectsDetailsEntity;
import com.sdry.model.zc.ZcDisposeRejectsEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcReworkEntity;
import com.sdry.service.zc.ZcReworkService;

/**
 * 
 * @ClassName:    ZcReworkServiceImpl   
 * @Description:  膜组件返工
 * @Author:       zc   
 * @CreateDate:   2018年10月17日 上午10:56:37   
 * @Version:      v1.0
 */
@Service
public class ZcReworkServiceImpl implements ZcReworkService{

	@Resource
	private ZcReworkMapper zcReworkMapper;
	/**
	 * 查询返工单列表
	 */
	@Override
	public List<ZcReworkEntity> selectReworkList(ZcQueryCriteria zcQueryCriteria) {
		return zcReworkMapper.selectReworkList(zcQueryCriteria);
	}
	/**
	 * 查询返工单列表数目
	 */
	@Override
	public int countReworkList(ZcQueryCriteria zcQueryCriteria) {
		return zcReworkMapper.countReworkList(zcQueryCriteria);
	}
	/**
	 * 查询待返工单列表
	 */
	@Override
	public List<ZcDisposeRejectsDetailsEntity> selectStayReworkList(ZcQueryCriteria zcQueryCriteria) {
		return zcReworkMapper.selectStayReworkList(zcQueryCriteria);
	}
	/**
	 * 查询待返工单列表数目
	 */
	@Override
	public int countStayReworkList(ZcQueryCriteria zcQueryCriteria) {
		return zcReworkMapper.countStayReworkList(zcQueryCriteria);
	}
	/**
	 * 查询返工单信息
	 */
	@Override
	public ZcDisposeRejectsDetailsEntity selectRework(ZcQueryCriteria zqc) {
		return zcReworkMapper.selectRework(zqc);
	}
	/**
	 * 保存返工单
	 */
	@Override
	public int insertRework(ZcReworkEntity zcReworkEntity) {
		return zcReworkMapper.insertRework(zcReworkEntity);
	}
	/**
	 * 删除返工单
	 */
	@Override
	public int delReworkArr(long id) {
		return zcReworkMapper.delReworkArr(id);
	}

}
